package com.neu.envprotection.feedback.feign;

import com.neu.envprotection.common.resp.RestResp;
import com.neu.envprotection.feedback.dao.entity.Rank;
import com.neu.envprotection.feedback.dto.resp.ReportChinaChartsRespDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
@FeignClient(value = "env-feedback-service")
public interface FeedbackFeign {
    @PostMapping("/api/inner/supervisor/getProvinceAQI")
    RestResp<List<ReportChinaChartsRespDto>> getProvinceAQI();

    @PostMapping("/api/inner/rank/selectRanks")
    RestResp<List<Rank>> selectRanks();
}

